<? 
include "../config/koneksi.php";
session_start();
if($_SESSION[login]==0){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login Staf</title>
<script language="javascript">
function validasi(form){
  if (form.username.value == ""){
    alert("Anda belum mengisikan Username.");
    form.username.focus();
    return (false);
  }
     
  if (form.password.value == ""){
    alert("Anda belum mengisikan Password.");
    form.password.focus();
    return (false);
  }
  return (true);
}
</script>
<style type="text/css">
<!--
@import url("../config/css/staff.css");

-->
</style></head>

<body  class="oneColFixCtrHdr" OnLoad="document.login.username.focus();">

<div id="container">
  <div id="header">
    
  <!-- end #header --></div>
  <div id="mainContent">
<marquee>  Selamat Datang Di Login Staf Dan Dosen</marquee>
  <br />
  <br />
  <form name="login" action="cek_login.php" method="POST" onSubmit="return validasi(this)">
   <center> <table width="251">
<tr><td width="76">Username</td>
<td width="163"> : 
  <input type="text"  class="name"name="username" ></td></tr>
<tr><td>Password</td><td> : <input type="password" class="pass" name="password" ></td></tr>
<tr><td colspan="2"><input type="submit" class="tombol" value="Login"> </td></tr>
</table>
</form>
  <br />
    <br />
      <br />

</div>
  <div id="footer">
       <p>CopyRight &copy; 2013 STIE INDONESIA pg All Right Reserved</p>
  </div>
</div>

</body>
</html>
<?
}

else{
	header('location:dasbord.php?mod=home');
}
?>